﻿namespace IBTrader.Indicator.Average
{
    using IBTrader.Charts;

    class TEMA : XEMA
    {
        public TEMA(Worker worker, double interval = 20) : base(worker, interval, interval, interval)
        {
            emas[2].Hit += (_, line) => OnHit(line, 3 * emas[0].Last.Price - 3 * emas[1].Last.Price + emas[2].Last.Price);
        }
    }
}